package com.sunhangfei.shf.controller;

import com.xiangyun.hello.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName starterController
 * Description
 * Create by xiangyun
 * Date 2020/5/4
 */
@RestController
@RequestMapping("/starter")
public class starterController {
    @Autowired
    private HelloService helloService;

    @GetMapping("/hello")
    public String index(){
        return helloService.sayHello();
    }


}
